package request

type EatAdd struct {
	Name  string  `form:"name" json:"name" binding:"required"`
	Num   int     `form:"num" json:"num" binding:"required"`
	Price float64 `form:"price" json:"price" binding:"required"`
}
type EatUpdate struct {
	Id  int `form:"id" json:"id" binding:"required"`
	Num int `form:"num" json:"num"`
}
type Register struct {
	Tel      string `form:"tel" json:"tel" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}
type Login struct {
	Tel      string `form:"tel" json:"tel" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}
type List struct {
	//Goods_name   string  `form:"goods_name" json:"goods_name" binding:"required"`
	//Goods_price  float64 `form:"goods_price" json:"goods_price" binding:"required"`
	//Goods_ms     string  `form:"Goods_ms" json:"Goods_ms" binding:"required"`
	//Goods_cover  string  `form:"goods_cover" json:"goods_cover" binding:"required"`
	//Goods_status string  `form:"goods_status" json:"goods_status" binding:"required"`
	//Goods_like   int     `form:"goods_like" json:"goods_like" binding:"required"`
}
type AddOrder struct {
	UserId  int    `form:"userId" json:"userId" binding:"required"`
	OrderSn string `form:"orderSn" json:"orderSn" binding:"required"`
	PayType int    `form:"payType" json:"payType" binding:"required"`
	Status  int    `form:"status" json:"status" binding:"required"`
	Amount  int    `form:"amount" json:"amount" binding:"required"`
}
type ListOrder struct {
	Page int    `form:"page" json:"page" `
	Size int    `form:"size" json:"size" `
	Name string `form:"name" json:"name"`
}
type OrderInfo struct {
	Id int `form:"id" json:"id" binding:"required"`
}
type OrderDel struct {
	Id int `form:"id" json:"id" binding:"required"`
}
